/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Entities;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Nas
 */
@Entity
@Table(name = "TIP_DOC_IDENTI")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "TipDocIdenti.findAll", query = "SELECT t FROM TipDocIdenti t"),
    @NamedQuery(name = "TipDocIdenti.findByIdTipDocIdenti", query = "SELECT t FROM TipDocIdenti t WHERE t.idTipDocIdenti = :idTipDocIdenti"),
    @NamedQuery(name = "TipDocIdenti.findByTipo", query = "SELECT t FROM TipDocIdenti t WHERE t.tipo = :tipo"),
    @NamedQuery(name = "TipDocIdenti.findByNombre", query = "SELECT t FROM TipDocIdenti t WHERE t.nombre = :nombre"),
    @NamedQuery(name = "TipDocIdenti.findByDescripcion", query = "SELECT t FROM TipDocIdenti t WHERE t.descripcion = :descripcion"),
    @NamedQuery(name = "TipDocIdenti.findByEstado", query = "SELECT t FROM TipDocIdenti t WHERE t.estado = :estado")})
public class TipDocIdenti implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "ID_TIP_DOC_IDENTI")
    private Integer idTipDocIdenti;
    @Column(name = "TIPO")
    private String tipo;
    @Column(name = "NOMBRE")
    private String nombre;
    @Column(name = "DESCRIPCION")
    private String descripcion;
    @Column(name = "ESTADO")
    private String estado;

    public TipDocIdenti() {
    }

    public TipDocIdenti(Integer idTipDocIdenti) {
        this.idTipDocIdenti = idTipDocIdenti;
    }

    public Integer getIdTipDocIdenti() {
        return idTipDocIdenti;
    }

    public void setIdTipDocIdenti(Integer idTipDocIdenti) {
        this.idTipDocIdenti = idTipDocIdenti;
    }

    public String getTipo() {
        return tipo;
    }

    public void setTipo(String tipo) {
        this.tipo = tipo;
    }

    public String getNombre() {
        return nombre;
    }

    public void setNombre(String nombre) {
        this.nombre = nombre;
    }

    public String getDescripcion() {
        return descripcion;
    }

    public void setDescripcion(String descripcion) {
        this.descripcion = descripcion;
    }

    public String getEstado() {
        return estado;
    }

    public void setEstado(String estado) {
        this.estado = estado;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idTipDocIdenti != null ? idTipDocIdenti.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TipDocIdenti)) {
            return false;
        }
        TipDocIdenti other = (TipDocIdenti) object;
        if ((this.idTipDocIdenti == null && other.idTipDocIdenti != null) || (this.idTipDocIdenti != null && !this.idTipDocIdenti.equals(other.idTipDocIdenti))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "Entities.TipDocIdenti[ idTipDocIdenti=" + idTipDocIdenti + " ]";
    }
    
}
